-
Notifications
You must be signed in to change notification settings - Fork 1
Addition of getRegisteredSyncRoots Method to Addon and Exposure as Static Function #151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| } | ||
|
|
||
| // GetRegisteredSyncRootsWrapper | ||
| napi_property_descriptor getRegisteredSyncRootsRootDesc = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this write well? SyncRootsRoot?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mmm it's true that it looks weird but all wrappers have the RootDesc at the end
| throw std::runtime_error("Error creando la cadena id"); | ||
| napi_set_named_property(env, jsObj, "id", napiId); | ||
|
|
||
| // Propiedad "path" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Place excpetions and comments in english
| status = napi_create_object(env, &jsObj); | ||
| if (status != napi_ok) | ||
| throw std::runtime_error("Error creando el objeto"); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here I assume it should be // Property "id"
This Pull Request introduces a new method in the addon to retrieve the registered synchronization root folders and exposes it as a static function to facilitate its use.